package com.zhou.transaction;

import java.sql.Connection;
import java.sql.SQLException;

import org.apache.commons.dbutils.QueryRunner;

import com.zhou.jdbc.JdbcUtils;

public class AccountDaoV2 {
	public  void update(String name,double money) throws SQLException{
		QueryRunner qr = new TxQueryRunner();
		String sql = "UPDATE account SET balance = balance + ? WHERE NAME = ?";
		Object[] params = {money,name};
		qr.update(sql,params);
	}
}
